import Vue from 'vue'
import Router from 'vue-router'
import index_index from '@/pages/index/index'
import index_aboutUs from '@/pages/index/aboutUs'
import jumpFile_newsList from '@/pages/jumpFile/newsList'
import goodsDetailMore from '@/pages/goodsDetail/goodsDetailMore'
Vue.use(Router)
export default new Router({
  routes: [
    // 首页
    {
      path: '/',
      name: 'home',
      components: {
        default: index_index
      }
    },
    // 首页关于
    {
      path: '/index/aboutUs',
      name: 'aboutUs',
      components: {
        default: index_aboutUs
      }
    },
    // 新闻列表
    {
      path: '/jumpFile/newsList',
      name: 'newsList',
      components: {
        default: jumpFile_newsList
      }
    },
    // 选货列表
    {
      path: '/goodsDetail/goodsDetailMore',
      name: 'goodsDetailMore',
      components: {
        default: goodsDetailMore
      }
    }
  ]
})

